import request from '@/utils/request.js'

const blogTypeApi = {
    selectAll() {
        return request.get('/blogType/selectAll')
    },
    list(blogTypeQuery) {
        return request.get('/blogType/list', {params: blogTypeQuery})
    },
    deleteById(id) {
        return request.delete(`/blogType/deleteById/${id}`)
    },
    deleteAll(ids) {
        return request.delete(`/blogType/deleteAll/${ids}`)
    },
    add(blogType) {
        return request.post(`/blogType/add`, blogType)
    },
    selectById(id) {
        return request.get(`/blogType/selectById/${id}`)
    },
    update(blogType) {
        return request.put(`/blogType/update`, blogType)
    }
}

export default blogTypeApi